<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ page import="com.pptree.vo.*" %>

<%
     User user = (User)session.getAttribute("CurrentUser");
     if(user == null){ //如果用户没有登录的话，user为null,重定向到用户登录页面
    	 //   contextPath = "/news"
    	 String contextPath = request.getServletContext().getContextPath();
    	 response.sendRedirect(contextPath + "/login.jsp");
     }
%>